<template>
  <div class="transaction">
      <div class="transactionNavBar">
          <van-nav-bar title="竞标报价" left-arrow @click-left="goback">
          </van-nav-bar>
      </div>
      <div class="transactionInfo" v-for="(transaction,tran) in transaction" :key="tran" @click="$router.push('/bidQuotation')">
          <div class="transactionLeft">
              <img :src="transaction.images">
          </div>
          <div class="transactionRight">
              <div class="transactionTitle">
                  <span>{{transaction.title}}</span>
              </div>
              <div class="transactionTag">
                  <span>{{transaction.grade}}</span>
                  <span>{{transaction.dispark}}</span>
                  <span>{{transaction.length}}</span>
                  <span>{{transaction.flpwnum}}</span>
              </div>
              <div class="transactionNum">
                  <span>拍卖数量{{transaction.num}}/束</span>
              </div>
              <div class="transactionPrice">
                  <span>你的报价{{transaction.price}}</span>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    name: "transaction",
    data(){
        return{
            transaction:[
                {"images":require("../../assets/images/home_banner.png"),
                 "title":"满天星",
                 "num":"10021",
                 "grade": "A级",
                 "dispark": "二度开放",
                 "length": "0.07毫米",
                 "flownum": "12束/枝",
                 "price": "￥78.9/束"
                },
                {"images":require("../../assets/images/home_banner.png"),
                 "title":"满天星",
                 "num":"10021",
                 "grade": "A级",
                 "dispark": "二度开放",
                 "length": "0.07毫米",
                 "flownum": "12束/枝",
                 "price": "￥78.9/束"
                },
                {"images":require("../../assets/images/home_banner.png"),
                 "title":"满天星",
                 "num":"10021",
                 "grade": "A级",
                 "dispark": "二度开放",
                 "length": "0.07毫米",
                 "flownum": "12束/枝",
                 "price": "￥78.9/束"
                },
                {"images":require("../../assets/images/home_banner.png"),
                 "title":"满天星",
                 "num":"10021",
                 "grade": "A级",
                 "dispark": "二度开放",
                 "length": "0.07毫米",
                 "flownum": "12束/枝",
                 "price": "￥78.9/束"
                },                
                {"images":require("../../assets/images/home_banner.png"),
                 "title":"满天星",
                 "num":"10021",
                 "grade": "A级",
                 "dispark": "二度开放",
                 "length": "0.07毫米",
                 "flownum": "12束/枝",
                 "price": "￥78.9/束"
                },
            ]
        }
    },
    methods:{
        goback(){
            this.$router.go(-1);
        }
    }
}
</script>

<style scoped>
.transaction{
    background:rgba(247,249,252,1);
}
.transactionInfo{
    display: flex;
    margin: 10px 10px;
    background-color: #fff;
    padding: 20px;
}
.transactionLeft{

}
.transactionLeft img{
    width: 112px;
    height: 112px;
}
.transactionRight{
    margin-left: 12px;
}
.transactionTitle{

}
.transactionTitle span{
    font-size:14px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    line-height:18px;
}
.transactionTag{
    margin-top: 8px;
}
.transactionTag span{
    background:rgba(235,235,235,1);
    border-radius:3px;
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    line-height:18px;
    margin-left: 5px;
    padding: 2px;
}
.transactionNum{
    margin-top: 8px;
}
.transactionNum span{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    line-height:18px;
}
.transactionPrice{
    width:140px;
    height:30px;
    background:rgba(255,240,230,1);
    border-radius:5px;
    padding-top: 7px;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 8px;
}
.transactionPrice span{
    font-size:16px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(255,98,0,1);
    line-height:20px;
    justify-content: center;
}
</style>